<?php

class WebUtilities
{
	public static function GetQueryString($name, $default)
	{
		if(isset($_REQUEST[$name]))
		{
			if($_REQUEST[$name] == null || $_REQUEST[$name] == "")
				return $default;
			return $_REQUEST[$name];
		}
		else
		{
			return $default;
		}
	}
	
	public static function Redirect($url)
	{
		ob_start();
		header("Location: " . $url);
	} 
	
	public static function GetPageSize()
	{
		return 20;
	}
	
	public static function GetTimeTest()
	{
		return 30;
	}
	
	public static function GetAdminRoleId()
	{
		return 1;
	}
}

?>